#ifndef EBOOKPATH_H
#define EBOOKPATH_H

#include <QWidget>
#include <QVector>

namespace Ui {
class EbookPath;
}

class EbookPath : public QWidget
{
    Q_OBJECT

public:
    explicit EbookPath(QWidget *parent = nullptr);
    ~EbookPath();

    void firstShow();

    bool isAllUnchecked();

    void subTypeSelect(int arg1, QString fileType);

    void displaySelectType();

    void clearAll();

private slots:
    void on_rBTypeIgnore_clicked();

    void on_cB_pdf_stateChanged(int arg1);

    void on_cB_epub_stateChanged(int arg1);

    void on_cB_azw3_stateChanged(int arg1);

    void on_cB_mobi_stateChanged(int arg1);

    void on_cB_caj_stateChanged(int arg1);

    void on_cB_docOrdocx_stateChanged(int arg1);

    void on_cB_txt_stateChanged(int arg1);

    void on_ptnConfirmOtherType_clicked();

    void on_ptnAddDir_clicked();

    void on_ptnDeleteDir_clicked();

    void on_ptnClearDir_clicked();

    void on_ptnAddFileFromDir2db_clicked();

signals:
    void loadFileSuccess();

private:
    Ui::EbookPath *ui;
    QStringList m_eBookType;
    QStringList m_eBookOtherType;
    bool flagSetup_rBTypeIgnore = false;
    QStringList m_dirList;
    QVector<QString> m_dirVec;
};

#endif // EBOOKPATH_H
